<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{$tt}></title>
<link href="<{$smarty.const.BASEPATH}>/css/tablecss.css" rel="stylesheet">
<script type="text/javascript" src="<{$smarty.const.WEBDIR}>js/admin.js"></script>
<link href="<{$smarty.const.BASEPATH}>/css/css.css" type="text/css" rel="stylesheet" />


</head>

<body>

<div class="divtitle"><span style="float:left;"><strong>◆<{$tt}></strong></span><span style="float:right;"><a href="<{spUrl c=news a=add categories_id=$categories_id}>"> +添加信息</a> / <a href="#" onclick="location.href='javascript:history.go(-1);'"> -返回</a></span></div>
<form name="form" method="post" action="">
<input type="hidden" name="selids" value=""/>
<table class="table">
	<tr class="table-title">
		<td>ID编号</td>
		<td>标题/描述</td>



		<td>排序</td>

		<td>操作</td>
	</tr>

<{foreach item=item name=url from=$arr}>  
		<tr class="table-content" onmouseover="javascript:this.bgColor='#FFFF98'" onmouseout="javascript:this.bgColor='#FFFFFF'">
		<td class="td1 border-td"><input type="checkbox" name="ids" id="ids" value="<{$item.news_id}>"/><{$item.news_id}></td>
		<td class="td3 border-td"><{$item.detail.news_name}><{if $item.pl==1}><a href="<{spUrl c=news_comments a=index newss_id=$item.news_id}>"><font color="red">有评论</font></a><{/if}></td>

		<td class="td6 border-td"><{$item.sort}>-<a href="<{spUrl c=pic2 a=index news_id=$item.news_id}>">图库</a></td>

		<td class="td8 border-td"><a href='<{spUrl c=news a=edit news_id=$item.news_id}>'>编辑</a> | <a href="<{spUrl c=news a=del cid=$item.master_categories_id id=$item.news_id}>" onClick="return confirm('确认删除吗？')">删除</a></td>

	</tr>
<{foreachelse}><{/foreach}>  
</table>
<br /><br />
<div id="submit_float"><div style="float:left"><button name="select1" onClick="selAll(this.form.ids)" type="button">全选</button>
   <button name="select2" onClick="noSelAll(this.form.ids)" type="button">反选</button>
   <button name="del" type="button" <{if $ttype eq her}>disabled="disabled"<{/if}> onClick="subform(this.form,this.form.ids,'<{spUrl c=news a=del}>','')">删除选中</button>
   <button name="reset" type="reset">重置</button> </div>
   <div style="float:right">
   <{if $tPageBar ne null}>
                    <div id="pager">
                    	分页 <a href="<{spUrl c=news a=index categories_id=$categories_id page=$tPageBar.prev_page size=$tPageBar.page_size}>"><img src="<{$smarty.const.BASEPATH}>/images/admin/img/icons/arrow_left.gif" width="16" height="16" border="0" /></a> 
                    	<input size="2" value="<{$tPageBar.current_page}>" type="text" name="page" id="page" /> 
                    	<a href="<{spUrl c=news a=index categories_id=$categories_id page=$tPageBar.next_page size=$tPageBar.page_size}>"><img src="<{$smarty.const.BASEPATH}>/images/admin/img/icons/arrow_right.gif" width="16" height="16" border="0" /></a>共 <{$tPageBar.total_page}>
                    页 | 显示 <select id="size" name="size" onchange="location.href='<{spUrl c=news a=index categories_id=$categories_id page=1}>&size='+$('#size').val();">
                    				<option <{if $tPageBar.page_size eq 10}>selected="selected"<{/if}>>10</option>
                                    <option <{if $tPageBar.page_size eq 20}>selected="selected"<{/if}>>20</option>
                                    <option <{if $tPageBar.page_size eq 50}>selected="selected"<{/if}>>50</option>
                                    <option <{if $tPageBar.page_size eq 100}>selected="selected"<{/if}>>100</option>
                    			</select> 
                    每页 | 共 <strong><{$tPageBar.total_count}></strong> 条记录
                    </div>
                    <{/if}></div>
   </div>
</form>

</div>
 
</body>

</html>
